package B;

import zhuanhua.circle;

public class cone {
	private circle c;
	private static double h;
	double pi = 3.14;

	cone(double r, double H) {
		h = H;
		c = new circle(r);
	}
	public double GetArea() {
		double s = c.getArea() + pi * c.r * Math.sqrt(h * h + c.r * c.r);
		return s;
	}

	public double GetVolume() {
		double V =  ( h * c.r*c.r*pi)/3;
		return V;
	}

}